package com.fan.teamer.model.dao;

import java.util.List;

import com.fan.teamer.model.domain.Member;
import com.fan.teamer.model.domain.Message;

public interface MessageDao {
	public Message getMessage(int id);

	public List<Message> getAllMessages();

	public int getSize();

	public void addMessage(Message message);

	public void updateStock(Message message);

	public void deleteMessage(Message message);

	public boolean hasMessage(int id);

	public List<String> getColumnNames();

	public List<Message> getMessagesBySender(Member member);

	public List<Message> getMessagesByReceiver(Member member);
}
